﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace QueryExtractorInterface
{
    public class News
    {
        public int ID { get; set; }
        public int RSSID { get; set; }
        public string Title { get; set; }
        public DateTime CrawlTime { get; set; }

        //public string RawPubDate { get; set; }
        //public DateTime PubDate
        //{
        //    get
        //    {
        //        return Utils.ParseDateTime(RawPubDate);
        //    }
        //}

        public string Link { get; set; }
        public string Description { get; set; }
        public string MD5Code { get; set; }

        //public override bool Equals(object obj)
        //{
        //    if (!(obj is News))
        //    {
        //        return false;
        //    }
        //    return this.ID == (obj as News).ID;
        //}

        //public override int GetHashCode()
        //{
        //    return this.ID.GetHashCode();
        //}

        //public override string ToString()
        //{
        //    return Title;
        //}
    }
}
